/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
import com.google.gwt.http.client.URL;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONValue;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ChangeListener;
import com.google.gwt.user.client.ui.DeckPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * Main entry point.
 *
 * @author Wanderley Filho
 */
public class MenuEntryPoint implements EntryPoint {

    /**
     * Creates a new instance of MenuEntryPoint
     */
    
    
    
    public MenuEntryPoint() {
    }
//
//    static TextBox tbEstado;
//    static TextBox tbBairro;
//    static TextBox tbCidade;

    public void onModuleLoad() {


        CrudUsuarioView telaCadastro = new CrudUsuarioView();
        CrudUsuarioPresent presenter = new CrudUsuarioPresent(telaCadastro);
        LoginView login = new LoginView();
        
        DeckPanel deck = new DeckPanel();
        
            deck.add(login);
             deck.add(telaCadastro);
             deck.showWidget(0);
             
             LoginPresenter loginPresenter = new LoginPresenter(login, deck);
             
             
        RootPanel.get("Cadastro").add(deck);
     

    }

}
